package com.example.demo.design_pattern.template;

/**
 * @author xkx
 * @description 实现travel模板:hangzhou
 */
public class TravelToHangzhouTemplateImpl extends AbstractTravelTemplate {

  @Override
  protected void setNeedPrepare(boolean needPrepare) {
    this.needPrepare = needPrepare;
  }


  @Override
  protected void preparation() {
    System.out.println("check hangzhou weather");
    System.out.println("plan visit xihu route");
  }

  @Override
  protected void doing() {
    System.out.println("西湖周边山上 骑行");
  }

  @Override
  protected void backHome() {
    System.out.println("high-Railway to home");
  }
}
